<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/3Column.Master" Inherits="System.Web.Mvc.ViewPage<IEnumerable<padnug.Domain.Event>>" %>

<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent3Column" runat="server">
	Events
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="LeftContent" runat="server">    
    <% Html.RenderPartial("_padnugFriendsControl"); %>
    <% Html.RenderPartial("_membershipToolsControl"); %></asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">

    <h2>Events</h2>

    

        <%--<tr>
            <th></th>
            <th>
                ID
            </th>
            <th>
                MeetingDate
            </th>
            <th>
                Host
            </th>
            <th>
                HostSummary
            </th>
            <th>
                Minutes
            </th>
            <th>
                Topic
            </th>
            <th>
                TopicSummary
            </th>
            <th>
                Location
            </th>
            <th>
                Latitude
            </th>
            <th>
                Longitude
            </th>
            <th>
                MeetingTime
            </th>
            <th>
                MeetingStart
            </th>
            <th>
                MeetingEnd
            </th>
        </tr>--%>

    <% foreach (var item in Model) { %>
    
        <div class="summary">
           <%-- <td>
                <%= Html.ActionLink("Edit", "Edit", new { /* id=item.PrimaryKey */ }) %> |
                <%= Html.ActionLink("Details", "Details", new { /* id=item.PrimaryKey */ })%>
            </td>--%>
            <%--<td>
                <%= Html.Encode(item.ID) %>
            </td>--%>
            <%--<td>
                <%= Html.Encode(String.Format("{0:g}", item.MeetingDate)) %>
            </td>
            <td>
                <%= Html.Encode(item.Host) %>
            </td>
            <td>
                <%= Html.Encode(item.HostSummary) %>
            </td>
            <td>--%>
            <div>Topic: <%= Html.Encode(item.Topic) %></div>
            <div>When: <%= Html.Encode(String.Format("{0:dddd, MMMM d, yyyy}", item.MeetingStart))%></div>
            <div>Where:<div><%= Html.Encode(item.Location)%>
                <div><%= Html.Encode(item.Address1)%></div>
                <div><%= Html.Encode(item.Address2)%></div>
                <div><%= Html.Encode(item.City)%>, <%= Html.Encode(item.State)%> <%= Html.Encode(item.Zip)%></div></div>
            </div>
            <div>Speaker: <%= Html.Encode(item.SpeakerName) %></div>
            <div>Presentation: <%= Html.Encode(item.TopicDescription)%></div>
            <div><%= Html.Encode(item.SpeakerPhotoUrl) %></div>
            <%--</td>
            <td>
                <%= Html.Encode(item.Topic) %>
            </td>
            <td>
                <%= Html.Encode(item.TopicSummary) %>
            </td>
            <td>
                <%= item.Location %>
            </td>
            <td>
                <%= Html.Encode(String.Format("{0:F}", item.Latitude)) %>
            </td>
            <td>
                <%= Html.Encode(String.Format("{0:F}", item.Longitude)) %>
            </td>
            <td>
                <%= Html.Encode(item.MeetingTime) %>
            </td>
            <td>
                <%= Html.Encode(String.Format("{0:g}", item.MeetingStart)) %>
            </td>
            <td>
                <%= Html.Encode(String.Format("{0:g}", item.MeetingEnd)) %>
            </td>--%>
        </div>
    <hr />
    <% } %>
<%--
    <p>
        <%= Html.ActionLink("Create New", "Create") %>
    </p>--%>

</asp:Content>
<asp:Content ID="Content4" ContentPlaceHolderID="RightContent" runat="server">
    <% Html.RenderPartial("_featuredSponsorsControl", (List<padnug.Models.Home.Sponsor>)ViewData["FeaturedSponsors"]); %>
    
    <% Html.RenderPartial("_eventsControl", new List<padnug.Models.Home.EventNote>()); %>
</asp:Content>
